package com.jerry.errors;

import com.jerry.interfaces.IResponse;

public enum EnumException implements IResponse {
    FALE_TO_DOWNLOAD_FILE(2001,"文件下载失败"),
    FALE_TO_GENERATE_METAFILE(2002,"生成Metafile失败"),
    CHUNK_FILE_INCOMPLETE(2003,"文件不完整"),
    FALE_TO_UPLOAD_FILE(2004,"文件上传失败");
    private final int code;
    private final String message;

    EnumException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return message;
    }
}
